package com.itheima.pojo;

import java.io.Serializable;

public class Sports implements Serializable {
    private Integer id;
    private String code;
    private String name;
    private String number;
    private String duration;

    public Sports() {
    }

    public Sports(String code, String name, String number, String duration) {
        this.code = code;
        this.name = name;
        this.number = number;
        this.duration = duration;
    }

    public Sports(Integer id, String code, String name, String number, String duration) {
        this.id = id;
        this.code = code;
        this.name = name;
        this.number = number;
        this.duration = duration;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    @Override
    public String toString() {
        return "Sports{" + "id=" + id + ", code='" + code + '\'' + ", name='" + name + '\'' + ", number='" + number + '\'' + ", duration='" + duration + '\'' + '}';
    }
}
